package com.pansoft.kline.model;

import java.io.Serializable;
import java.util.List;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/11/20 17:02
 * @desc :  涨跌幅的网络请求实体类
 * @version: 1.0
 */
public class KLineRiseFallRemoteModel implements Serializable {


    /**
     * code : 0
     * data : {"main":[{"id":"7496","high":5289.8359437,"low":4416.4616868944,"buy":4518.3826294366,"sell":4518.3826294366,"last":4518.3826294366,"vol":1403474.7231314,"open":5217.8363080917,"time":1542704349695},{"id":"7843","high":159,"low":127.76789041648,"buy":133.2604671361,"sell":133.2604671361,"last":133.2604671361,"vol":1.9956008529016E7,"open":157.33777001971,"time":1542704350177},{"id":"7841","high":283.68455178438,"low":196.06575797088,"buy":260.33513080443,"sell":260.33513080443,"last":260.33513080443,"vol":1979800.6272462,"open":281.21400867064,"time":1542704348159},{"id":"7505","high":4.2822658012171,"low":3.4863312011295,"buy":3.6245179796814,"sell":3.6245179796814,"last":3.6245179796814,"vol":4.5894651521835E8,"open":4.1507202166273,"time":1542704350231},{"id":"7844","high":38.954716058048,"low":31.698974374988,"buy":32.619939631021,"sell":32.619939631021,"last":32.619939631021,"vol":2.2904150694156E7,"open":37.884702100888,"time":1542704350226},{"id":"7842","high":0.002391356,"low":0.0010263345226177,"buy":0.0020950273732673,"sell":0.0020950273732673,"last":0.0020950273732673,"vol":2.1674915072011E8,"open":0.0023739862895768,"time":1542704350012}],"collection":{"down":328,"up":8,"invariant":164},"increases":[{"id":"12360","high":0.02643,"low":0.01465175,"buy":0.02363,"sell":0.02363,"last":0.02363,"vol":18692.51383376,"open":0.01704,"time":1542702191078},{"id":"10648","high":1.0346644544655,"low":0.5707058032499,"buy":0.99268046960174,"sell":0.99268046960174,"last":0.99268046960174,"vol":5428045.281,"open":0.86334070826844,"time":1542704294654},{"id":"8650","high":2.43,"low":0.71,"buy":2.0177223260986,"sell":2.0177223260986,"last":2.0177223260986,"vol":1.45314506561E7,"open":1.7745211503873,"time":1542704344075},{"id":"10611","high":0.050770562699999,"low":0.010599477,"buy":0.01474,"sell":0.01474,"last":0.01474,"vol":5241256.469999,"open":0.01358,"time":1539958625215},{"id":"10744","high":0.00551,"low":0.00514,"buy":0.00543,"sell":0.00543,"last":0.00543,"vol":2.35490894E7,"open":0.00514,"time":1540396583176}],"decreases":[{"id":"10725","high":2.0E-5,"low":1.0001159998343E-5,"buy":1.0001159998343E-5,"sell":1.0001159998343E-5,"last":1.0001159998343E-5,"vol":1.4950067799697E10,"open":2.0E-5,"time":1542704344698},{"id":"10833","high":4.6575078861943E-5,"low":1.0019235028426E-5,"buy":1.0019235028426E-5,"sell":1.0019235028426E-5,"last":1.0019235028426E-5,"vol":3.1350268537E8,"open":2.0015190372146E-5,"time":1542704277699},{"id":"8625","high":0.4104135,"low":0.1034994,"buy":0.22392969405414,"sell":0.22392969405414,"last":0.22392969405414,"vol":3804106.9418654,"open":0.37697955850159,"time":1542704350227},{"id":"10767","high":0.045361428090115,"low":0.024302418,"buy":0.025008171424721,"sell":0.025008171424721,"last":0.025008171424721,"vol":549550,"open":0.042055771882932,"time":1542704345031},{"id":"10623","high":0.003898559,"low":0.00231946,"buy":0.0024198789989923,"sell":0.0024198789989923,"last":0.0024198789989923,"vol":4.9069637237473E8,"open":0.0038720037089279,"time":1542704343216}]}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * main : [{"id":"7496","high":5289.8359437,"low":4416.4616868944,"buy":4518.3826294366,"sell":4518.3826294366,"last":4518.3826294366,"vol":1403474.7231314,"open":5217.8363080917,"time":1542704349695},{"id":"7843","high":159,"low":127.76789041648,"buy":133.2604671361,"sell":133.2604671361,"last":133.2604671361,"vol":1.9956008529016E7,"open":157.33777001971,"time":1542704350177},{"id":"7841","high":283.68455178438,"low":196.06575797088,"buy":260.33513080443,"sell":260.33513080443,"last":260.33513080443,"vol":1979800.6272462,"open":281.21400867064,"time":1542704348159},{"id":"7505","high":4.2822658012171,"low":3.4863312011295,"buy":3.6245179796814,"sell":3.6245179796814,"last":3.6245179796814,"vol":4.5894651521835E8,"open":4.1507202166273,"time":1542704350231},{"id":"7844","high":38.954716058048,"low":31.698974374988,"buy":32.619939631021,"sell":32.619939631021,"last":32.619939631021,"vol":2.2904150694156E7,"open":37.884702100888,"time":1542704350226},{"id":"7842","high":0.002391356,"low":0.0010263345226177,"buy":0.0020950273732673,"sell":0.0020950273732673,"last":0.0020950273732673,"vol":2.1674915072011E8,"open":0.0023739862895768,"time":1542704350012}]
         * collection : {"down":328,"up":8,"invariant":164}
         * increases : [{"id":"12360","high":0.02643,"low":0.01465175,"buy":0.02363,"sell":0.02363,"last":0.02363,"vol":18692.51383376,"open":0.01704,"time":1542702191078},{"id":"10648","high":1.0346644544655,"low":0.5707058032499,"buy":0.99268046960174,"sell":0.99268046960174,"last":0.99268046960174,"vol":5428045.281,"open":0.86334070826844,"time":1542704294654},{"id":"8650","high":2.43,"low":0.71,"buy":2.0177223260986,"sell":2.0177223260986,"last":2.0177223260986,"vol":1.45314506561E7,"open":1.7745211503873,"time":1542704344075},{"id":"10611","high":0.050770562699999,"low":0.010599477,"buy":0.01474,"sell":0.01474,"last":0.01474,"vol":5241256.469999,"open":0.01358,"time":1539958625215},{"id":"10744","high":0.00551,"low":0.00514,"buy":0.00543,"sell":0.00543,"last":0.00543,"vol":2.35490894E7,"open":0.00514,"time":1540396583176}]
         * decreases : [{"id":"10725","high":2.0E-5,"low":1.0001159998343E-5,"buy":1.0001159998343E-5,"sell":1.0001159998343E-5,"last":1.0001159998343E-5,"vol":1.4950067799697E10,"open":2.0E-5,"time":1542704344698},{"id":"10833","high":4.6575078861943E-5,"low":1.0019235028426E-5,"buy":1.0019235028426E-5,"sell":1.0019235028426E-5,"last":1.0019235028426E-5,"vol":3.1350268537E8,"open":2.0015190372146E-5,"time":1542704277699},{"id":"8625","high":0.4104135,"low":0.1034994,"buy":0.22392969405414,"sell":0.22392969405414,"last":0.22392969405414,"vol":3804106.9418654,"open":0.37697955850159,"time":1542704350227},{"id":"10767","high":0.045361428090115,"low":0.024302418,"buy":0.025008171424721,"sell":0.025008171424721,"last":0.025008171424721,"vol":549550,"open":0.042055771882932,"time":1542704345031},{"id":"10623","high":0.003898559,"low":0.00231946,"buy":0.0024198789989923,"sell":0.0024198789989923,"last":0.0024198789989923,"vol":4.9069637237473E8,"open":0.0038720037089279,"time":1542704343216}]
         */

        private CollectionBean collection;
        private List<MainBean> main;
        private List<IncreasesBean> increases;
        private List<DecreasesBean> decreases;

        public CollectionBean getCollection() {
            return collection;
        }

        public void setCollection(CollectionBean collection) {
            this.collection = collection;
        }

        public List<MainBean> getMain() {
            return main;
        }

        public void setMain(List<MainBean> main) {
            this.main = main;
        }

        public List<IncreasesBean> getIncreases() {
            return increases;
        }

        public void setIncreases(List<IncreasesBean> increases) {
            this.increases = increases;
        }

        public List<DecreasesBean> getDecreases() {
            return decreases;
        }

        public void setDecreases(List<DecreasesBean> decreases) {
            this.decreases = decreases;
        }

        public static class CollectionBean {
            /**
             * down : 328
             * up : 8
             * invariant : 164
             */

            private int down;
            private int up;
            private int invariant;

            public int getDown() {
                return down;
            }

            public void setDown(int down) {
                this.down = down;
            }

            public int getUp() {
                return up;
            }

            public void setUp(int up) {
                this.up = up;
            }

            public int getInvariant() {
                return invariant;
            }

            public void setInvariant(int invariant) {
                this.invariant = invariant;
            }
        }

        public static class MainBean {
            /**
             * id : 7496
             * high : 5289.8359437
             * low : 4416.4616868944
             * buy : 4518.3826294366
             * sell : 4518.3826294366
             * last : 4518.3826294366
             * vol : 1403474.7231314
             * open : 5217.8363080917
             * time : 1542704349695
             */

            private String id;
            private double high;
            private double low;
            private double buy;
            private double sell;
            private double last;
            private double vol;
            private double open;
            private long time;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public double getHigh() {
                return high;
            }

            public void setHigh(double high) {
                this.high = high;
            }

            public double getLow() {
                return low;
            }

            public void setLow(double low) {
                this.low = low;
            }

            public double getBuy() {
                return buy;
            }

            public void setBuy(double buy) {
                this.buy = buy;
            }

            public double getSell() {
                return sell;
            }

            public void setSell(double sell) {
                this.sell = sell;
            }

            public double getLast() {
                return last;
            }

            public void setLast(double last) {
                this.last = last;
            }

            public double getVol() {
                return vol;
            }

            public void setVol(double vol) {
                this.vol = vol;
            }

            public double getOpen() {
                return open;
            }

            public void setOpen(double open) {
                this.open = open;
            }

            public long getTime() {
                return time;
            }

            public void setTime(long time) {
                this.time = time;
            }
        }

        public static class IncreasesBean {
            /**
             * id : 12360
             * high : 0.02643
             * low : 0.01465175
             * buy : 0.02363
             * sell : 0.02363
             * last : 0.02363
             * vol : 18692.51383376
             * open : 0.01704
             * time : 1542702191078
             */

            private String id;
            private double high;
            private double low;
            private double buy;
            private double sell;
            private double last;
            private double vol;
            private double open;
            private long time;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public double getHigh() {
                return high;
            }

            public void setHigh(double high) {
                this.high = high;
            }

            public double getLow() {
                return low;
            }

            public void setLow(double low) {
                this.low = low;
            }

            public double getBuy() {
                return buy;
            }

            public void setBuy(double buy) {
                this.buy = buy;
            }

            public double getSell() {
                return sell;
            }

            public void setSell(double sell) {
                this.sell = sell;
            }

            public double getLast() {
                return last;
            }

            public void setLast(double last) {
                this.last = last;
            }

            public double getVol() {
                return vol;
            }

            public void setVol(double vol) {
                this.vol = vol;
            }

            public double getOpen() {
                return open;
            }

            public void setOpen(double open) {
                this.open = open;
            }

            public long getTime() {
                return time;
            }

            public void setTime(long time) {
                this.time = time;
            }
        }

        public static class DecreasesBean {
            /**
             * id : 10725
             * high : 2.0E-5
             * low : 1.0001159998343E-5
             * buy : 1.0001159998343E-5
             * sell : 1.0001159998343E-5
             * last : 1.0001159998343E-5
             * vol : 1.4950067799697E10
             * open : 2.0E-5
             * time : 1542704344698
             */

            private String id;
            private double high;
            private double low;
            private double buy;
            private double sell;
            private double last;
            private double vol;
            private double open;
            private long time;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public double getHigh() {
                return high;
            }

            public void setHigh(double high) {
                this.high = high;
            }

            public double getLow() {
                return low;
            }

            public void setLow(double low) {
                this.low = low;
            }

            public double getBuy() {
                return buy;
            }

            public void setBuy(double buy) {
                this.buy = buy;
            }

            public double getSell() {
                return sell;
            }

            public void setSell(double sell) {
                this.sell = sell;
            }

            public double getLast() {
                return last;
            }

            public void setLast(double last) {
                this.last = last;
            }

            public double getVol() {
                return vol;
            }

            public void setVol(double vol) {
                this.vol = vol;
            }

            public double getOpen() {
                return open;
            }

            public void setOpen(double open) {
                this.open = open;
            }

            public long getTime() {
                return time;
            }

            public void setTime(long time) {
                this.time = time;
            }
        }
    }
}
